package zy.blue7.cloud.web.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import springfox.documentation.service.Contact;

import javax.validation.constraints.NotNull;

/**
 * @Author: blue7
 * @Date: 2021/5/1 17:13
 * @Version 1.0
 * @Description  自定义的swagger2 的属性
 */
@Data
@ToString
@ConfigurationProperties(prefix = "blue7.swagger")
public class SwaggerProperties {

    @NotNull
    private String title;

    @NotNull
    private String description;

    @NotNull
    private String version;

    private String termsOfServiceUrl;

    private Contact contact;
}

